package com.platform.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.platform.dao.AuctionRecordDao;
import com.platform.entity.AuctionRecordEntity;
import com.platform.service.AuctionRecordService;

/**
 * 竞拍记录Service实现类
 *
 * @author liweihai
 * @email liweihai12345@sina.com
 * @date 2019-07-05 13:51:24
 */
@Service("auctionRecordService")
public class AuctionRecordServiceImpl implements AuctionRecordService {
    @Autowired
    private AuctionRecordDao auctionRecordDao;

    @Override
    public AuctionRecordEntity queryObject(Integer id) {
        return auctionRecordDao.queryObject(id);
    }

    @Override
    public List<AuctionRecordEntity> queryList(Map<String, Object> map) {
        return auctionRecordDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return auctionRecordDao.queryTotal(map);
    }

    @Override
    public int save(AuctionRecordEntity auctionRecord) {
        return auctionRecordDao.save(auctionRecord);
    }

    @Override
    public int update(AuctionRecordEntity auctionRecord) {
        return auctionRecordDao.update(auctionRecord);
    }

    @Override
    public int delete(Integer id) {
        return auctionRecordDao.delete(id);
    }

    @Override
    public int deleteBatch(Integer[] ids) {
        return auctionRecordDao.deleteBatch(ids);
    }
}
